﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class1
    {
        public class Facel : Interface1
        {
            public int Id { get ; set ; }
            public string Name { get; set; }
            public double Count { get; set; }
            public double Math { get; set; }
            int Interface1.Count { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }

            public void Avg()
            {
                double avg = (Count + Math) / 2;
                Console.WriteLine("平均分"+avg);
            }

            public class Face : Interface1 {
                int Interface1.Count { get; set; }
                public double Math { get; set; }
                double Interface1.Math { get;  set; }
                int Interface1.Id { get; set; }
                String Interface1.Name{ get; set; }
                public double Count { get; private set; }
                void Interface1.Avg()
                {
                    double avg = (Count + Math) / 2;
                    Console.WriteLine("平均分"+avg);
                }
            }
        }
    }
}

